<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

/**
 * App\Models\User
 *
 * @property int $id
 * @property string $user_name 用户名
 * @property string $user_coin 用户余额
 * @property string $user_password 用户密码
 * @property string $user_salt 盐值
 * @property string $user_sign 签名
 * @property string $user_reg_time 注册时间
 * @property string $user_last_login_time 上次登录时间
 * @property string $user_birthday 生日
 * @property string $user_sex 性别 1男 2女
 * @property string $user_nickname 昵称
 * @property string $user_avatar 头像
 * @property string $user_token 令牌
 * @property string $union_id union_id
 * @property string $open_id open_id
 * @property string $is_push is_push
 * @property string $user_score 积分
 * @property string $defaultAddress 默认地址
 * @property string $is_first 是否首次充值 1首冲  0不是
 * @property string $Invite_code 邀请码
 * @property int $BNF_Lv1 上级  邀请受益人
 * @property int $BNF_Lv2 次级  邀请受益人
 * @property int $BNF_Lv3 三级  邀请受益人
 * @property int $BNF_Lv4 四级  邀请受益人
 * @property string $login_type 登录类型  WxLogin TxLogin mobile
 * @property int $is_disabled 是否禁用用户
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereBNFLv1($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereBNFLv2($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereBNFLv3($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereBNFLv4($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereDefaultAddress($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereInviteCode($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereIsDisabled($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereIsFirst($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereIsPush($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereLoginType($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereOpenId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUnionId($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserAvatar($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserBirthday($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserCoin($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserLastLoginTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserName($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserNickname($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserPassword($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserRegTime($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserSalt($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserScore($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserSex($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserSign($value)
 * @method static \Illuminate\Database\Eloquent\Builder|\App\Models\User whereUserToken($value)
 * @mixin \Eloquent
 */
class User extends Model
{
    public $table       = 'user';
    public $timestamps  = false;
    public static function getUserList()
    {
        $data = self::paginate(15);
        if (!empty($data)){
            $data = $data->toArray();
        }else{
            $data = [];
        }
        return $data;
    }
}
